<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta http-equiv="cache-control" content="no-cache" />
        <meta http-equiv="pragma" content="no-cache" />  
        <title><?=INSTANCE_NAME?>s Administration Portal - Login</title>
        
        <!-- CSS -->
        <link href="<?=base_url()?>assets/admin/css/admin_styles<?=INSTANCE_FILE_SUFFIX?>.css" rel="stylesheet" type="text/css" media="screen" >


        <!-- JAVASCRIPT -->
        <script type="text/javascript" src="<?=base_url()?>assets/admin/js/jquery-1.4.1.min.js"></script>                            
        <script type="text/javascript" src="<?=base_url()?>assets/admin/js/jquery.tools.min.js"></script>                            
        <script type="text/javascript" src="<?=base_url()?>assets/admin/tiny_mce/tiny_mce.js"></script>
        <script type="text/javascript" src="<?=base_url()?>assets/admin/tiny_mce/plugins/imagemanager/js/mcimagemanager.js"></script>
                       

    </head>
    <body>



        <div id="login">

            <? if(($this->input->post("submit_action") !== FALSE) && (validation_errors() != "")){ ?>
                <div style="margin-bottom:20px">
                <?=validation_errors()?>
                </div>
            <? } ?>                      

            <? if(is_array($response)){?>
                <div class="<?=$response["class"]?>" style="margin-bottom:20px"><?=$response["msg"]?></div>
            <?}?>


            <form action="" method="post">
                                                                                                                 
                    <h4 class="float_block" style="width:80px;">Username</h4>
                    <input type="text" style="float:right; width:120px" name="username" value="<?=set_value('username')?>" />

                    <div class="clear"></div> 

                    <h4 class="float_block" style="width:80px;">Password</h4>
                    <input type="password" style="float:right; width:120px" name="password" value="<?=set_value('password')?>" />

                    <div class="clear"></div>

                    <input type="hidden" name="token" value="<?=$token?>" />
                    <input style="float:right" type="submit" name="submit_action" value="LOGIN" class="button" />

            </form>

        </div>

    </body>

</html>